#!/bin/bash

docker stop odd

docker rm -f odd

dokcer rmi odd:1.0
docker network disconnect --force bridge odd
docker build -t odd:1.0 .

docker run -d -p 8002:8000 --name odd odd:1.0

echo "----------------- 安装完成 运行测试 ----------------------"
sleep 5
docker exec -it odd python -m unittest discover -v

exit
